<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%=request.getContextPath()%>/css/Style.css"
			type="text/css" rel="stylesheet">
		<link href="<%=request.getContextPath()%>/css/admin.css"
			type="text/css" rel="stylesheet">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/img.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.3.2.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/select.js"></script>
			<script type="text/javascript" src="<%=request.getContextPath() %>/FCKeditor/fckeditor.js"></script>
		<script type="text/javascript">
		
		window.onload = function(){
		document.getElementById("pub.title").focus();
		var oFCKeditor1 = new FCKeditor("pub.content");
		oFCKeditor1.BasePath = "<%=request.getContextPath()%>/FCKeditor/";
		oFCKeditor1.ReplaceTextarea();
		}
		function check(){
		if(document.getElementById("pub.title").value <1) {
				alert("请输入标题");
				document.getElementById("pub.title").focus();
				return false;
			};
	
		return true;
		
	}
		</script>
		
		<title>公共文字-添加</title>
	</head>
	<body>
		<table width="100%" cellspacing="0" cellpadding="0"
							bordercolor="#003366" border="1" class="Table1" align="left">
							<tbody>
								<tr height="30px">
									
									<td colspan="6" class="thead">
										当前位置:
									<%
										String nid = request.getParameter("nid");
										if(nid.equals("5")) {
											
									%>
										<span>公司文化</span>
									<% 		
										}
										if(nid.equals("18")) {
									%>
										装修流程
									<% 		
										}
										if(nid.equals("19")) {
									%>
										服务范围
									<% 		
										}
									%>
										
										&gt;添加
										<br><br>
								</tr>
		</tbody>
		</table>
		<form action="<%=request.getContextPath()%>/admin/addPublicObj.htm"
			method="post" id="n_form" onsubmit="return check();">
			<table cellspacing="0" cellpadding="0" border="0" align="center"
				width="600">
				<tbody>
				
					<tr>
						<table width="100%" cellspacing="0" cellpadding="0"
				bordercolor="#003366" border="1" class="Table1">
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td height="25" align="center">
						标题：
					</td>
					<td height="25" align="center">
						<textarea rows="2" cols="100" id="pub.title" name="pub.title"></textarea>
					</td>
				</tr>
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td height="25" align="center">
						内容:
					</td>
					<td colspan="2" height="25" align="center">
						<textarea id="pub.content" name="pub.content" rows="1" cols="1"> </textarea>
					</td>
				</tr>
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td colspan="2" height="25" align="right">
					<br>
					<br>
					<br>
					<input type="submit" value="提交" />
					<input type="button" onclick="javascript:history.go(-1)" value="返回" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</td>
				</tr>
			</table>
			<input type="hidden" name="pub.nid" value="<%=request.getParameter("nid") %>">
		</form>
	</body>
</html>